﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Public.Common;

public partial class tu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ShowData();
        }
    }
    protected void ShowData()
    {
        this.Header1.HrefText = " >> <a href='/tu.aspx' title='两性图片'>两性图片</a>";

        string where = " (Body_TFTu=1)  ";
        int count = MRequest.GetQueryInt("count", 0);
        int page = MRequest.GetQueryInt("page", 0);
        count = count == 0 ? WebBase.Repository.forum_body.GetCount(where) : count;


        this.Repeater1.DataSource = WebBase.CacheRepository.forum_body.GetPaged(where, " Body_id desc ", page == 0 ? 0 : page - 1, 28);

        this.Repeater1.DataBind();

        hb.pagelist.info_pagelist page_ = new hb.pagelist.info_pagelist(count, page, 3, 28, "tu", null);
        page_.StrType = "aspx";
        this.pagelisthtml.InnerHtml = page_.html_Aspx();
    }
}